package org.insidesource.flexbugs.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Issue implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String project;
	private String description;
	private String type;
	private String severity;
	private String status;
	private String details;
	private String reportedBy;
	private Date reportedOn;
	private String assignedTo;
	private Double estimatedHours;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId()
	{
		return id;
	}
	public void setId(Long id)
	{
		this.id = id;
	}
	
	@Column(name="project")
	public String getProject()
	{
		return project;
	}
	public void setProject(String project)
	{
		this.project = project;
	}
	
	@Column(name="description")
	public String getDescription()
	{
		return description;
	}
	public void setDescription(String description)
	{
		this.description = description;
	}
	
	@Column(name="type")
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	
	@Column(name="severity")
	public String getSeverity()
	{
		return severity;
	}
	public void setSeverity(String severity)
	{
		this.severity = severity;
	}
	
	@Column(name="status")
	public String getStatus()
	{
		return status;
	}
	public void setStatus(String status)
	{
		this.status = status;
	}
	
	@Column(name="details")
	public String getDetails()
	{
		return details;
	}
	public void setDetails(String details)
	{
		this.details = details;
	}
	
	@Column(name="reportedBy")
	public String getReportedBy()
	{
		return reportedBy;
	}
	public void setReportedBy(String reportedBy)
	{
		this.reportedBy = reportedBy;
	}
	
	@Column(name="reportedOn")
	public Date getReportedOn()
	{
		return reportedOn;
	}
	public void setReportedOn(Date reportedOn)
	{
		this.reportedOn = reportedOn;
	}
	
	@Column(name="assignedTo")
	public String getAssignedTo()
	{
		return assignedTo;
	}
	public void setAssignedTo(String assignedTo)
	{
		this.assignedTo = assignedTo;
	}
	
	@Column(name="estimatedHours")
	public Double getEstimatedHours()
	{
		return estimatedHours;
	}
	public void setEstimatedHours(Double estimatedHours)
	{
		this.estimatedHours = estimatedHours;
	}
	
}
